#include "stdafx.h"

#ifdef __APPLE__
int main()
#else
int /*__stdcall*/ WinMain(HINSTANCE a, HINSTANCE b, LPSTR c, int d)
#endif
{
    //#ifdef _DEBUG
	try 
	{
	    Application app;
	    app.init();
	    LOGMSG("------------- init started -------------");
	    app.init_resources();
	    app.init_inputs();
	    app.init_scene();
	    app.init_gorilla();
        app.init_other();
	    LOGMSG("------------- init ended -------------");
	    app.root->startRendering();
	}
	catch(Ogre::Exception& e)
	{
        cout << "An exception has occured: " << e.getFullDescription() << "\n";
	}
    return 0;
}
